<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
	<title>demo</title>
	<meta name="author" content="ice" />
	<meta name="viewport" content="width=device-width; initial-scale=1.0" />
	<link rel="stylesheet" href="css/common.css" />
	<link rel="stylesheet" href="css/itemindex.css" />
</head>
<body>
	<div class="view">
		<div class="main-top">
			<a class="main-nav select">索引</a>
			<a class="main-nav">题目添加</a>
			<a class="main-nav">试卷添加</a>
			<a class="main-nav">题型题类添加</a>
		</div>
		<div class="main">
			<div class="rcnt">
				<div class="user bor">
					<div class="user-name">当前用户名</div>
					<a class="change-user">切换用户</a>
				</div>
				<div class="bor">
					<a class="recent-btn">最近修改试题</a>
					<a class="recent-btn">最近试卷模板</a>
					<a class="recent-btn">最近试卷</a>
				</div>
			</div>
			<form class="lcnt">
				<div class="box">
					<a class="edit item-edit" title="编辑">编辑</a>
					<div class="content bor">
						<span class="content-key">题目代码：</span><span class="content-value">asdasd</span><br />
						<span class="content-key">题目简介：</span><span class="content-value">第一个题干若干文字</span><br />
						<span class="content-key">创建时间：</span><span class="content-value">2012年12月12日</span><br />
						<span class="content-key">题目类别：</span><span class="content-value">集合</span><br />
						<span class="content-key">题型：</span><span class="content-value">选择</span><br />
						<span class="content-key">难度：</span><span class="content-value">A</span><br />
						<span class="content-key">点选</span><input class="check" type="checkbox"/>
					</div>
					<a class="edit" title="删除">删除</a>
				</div>
				<div class="box2 bor">
					<a class="all-select" onclick="selectAll()" href="javascript:void(0)">全选</a>
					<input type="submit" value="批量删除" class="delete-all bor" />
				</div>
			</form>
		</div>
	</div>
	<div class="foo">
		版本信息
	</div>
	<script>
		function selectAll(){
			var checkbox = document.getElementsByClassName("check");
			var i=1;
			while(i<=checkbox.length){
				if(checkbox[i-1].type == "checkbox"){
					checkbox[i-1].checked = true;	
				}
				i++;
			}
		};
	</script>
</body>
</html>